<%-- 
    Document   : FormProfilSekolah
    Created on : Nov 17, 2012, 11:44:49 AM
    Author     : Yo
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.ProsesBean"%>
<html>
    <head>
        <title>Profil</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css" />
        <link href="default.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body style="margin: 0px;">
        <%
            String username = (String) session.getAttribute("user");
            if (username == null) {
                username = "";
            }
        %>
        <div id="header" class="container">
            <div id="logo">
                <h1><a href="#">Pendafataran SMA Negeri Online</a></h1>
                <p>Yogyakarta</a></p>
            </div>
        </div>
        <div id="menu" class="container">
            <ul>
                <li><a href="FormHomeSekolah.jsp" accesskey="1" title="">Home Sekolah</a></li>
                <li  class="current_page_item"><a href="FormProfilSekolah.jsp" accesskey="1" title="">Profil</a></li>
                <li><a href="FormSeleksiSekolah.jsp" accesskey="2" title="">Seleksi</a></li>
                <li ><a href="FormDaftarDiterima.jsp" accesskey="3" title="">Daftar diterima</a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
               
           
                <li><a href="#" accesskey="4" title="">login as </a></li>
                <li><a href="#" accesskey="4" title=""><%=username%></a></li>
                <li><a href="logout.jsp" accesskey="5" title="">logout</a></li>
            </ul>
        </div>

        <div id="page" class="container">

            <div id="content">

                <table border="0" cellspacing="0" cellpadding="0" width="800">
                    <tr width="200" valign="top" align="left">
                        <td width="136" height="43"></td>
                        <td width="180"></td>
                    </tr>
                    <tr valign="top" align="left">
                        <td></td>
                        <td width="600" id="Text3" class="TextObject">
                            <h3>Profil Sekolah</h3>
                            <br><br>
                            <table width="500" border="0">
                                <%
                                    try {
                                        ProsesBean PK = new ProsesBean();%>
                                <%
                                    ResultSet temp = PK.profilSekolah(username);
                                    while (temp.next()) {
                                %>
                                <tr>
                                    <td><p>No Sekolah </p></td>
                                    <td><p><%=temp.getString(1)%></p></td>
                                </tr>
                                <tr>
                                    <td><p>Nama Sekolah </p></td>
                                    <td><p><%=temp.getString(2)%></p></td>
                                </tr>
                                <tr>
                                    <td><p>Alamat </p></td>
                                    <td><p><%=temp.getString(3)%></p></td>
                                </tr>
                                <tr>
                                    <td><p>Email </p></td>
                                    <td><p><%=temp.getString(4)%></p></td>
                                </tr>
                                <tr>
                                    <td><p>Kuota </p></td>
                                    <td><p><%=temp.getString(5)%></p></td>
                                </tr>
                                <tr>
                                    <td><p>Username</p> </td>
                                    <td><p><%=temp.getString(6)%></p></td>
                                </tr>
                                <%            }
                                %>
                                <%
                                    } catch (Exception e) {
                                        e.getMessage();
                                    }
                                %>
                            </table>
                            <br>
                            <p><a href="FormEditProfilSekolah.jsp">edit profil</a></p>
                        </td>
                    </tr>


                </table>
            </div>

        </div>
        <div id="footer">
            <p>Copyright (c) 2012 www.Vido_Dido.com </p>
        </div>
    </body>
</html>
